#{extends 'master.html' /}
<div class="page-block">
    <div class="pager">
    #{pager_deprecated model:brands, action:'BrandAdmin.list', map:params.allSimple() /}
    </div>
    <ul class="brand-list">
    #{list items:brands.items, as:'brand'}
        <li>
            #{if brand.imagesCount > 0}
                <img src="@{Product.brandImage(brand.id, 1, 100, 70, 'png')}"/>
            #{/if}
            #{else}
                <img src="@{Product.defaultImage(100, 70, 'png')}"/>
            #{/else}
            <div><a href="@{BrandAdmin.display(brand.id)}">${brand.title}</a></div>
        </li>
    #{/list}
    </ul>
    <div class="pager">
    #{pager_deprecated model:brands, action:'BrandAdmin.list', map:params.allSimple() /}
    </div>
</div>